package com.cow.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.cow.mapper.LandMapper;
import com.cow.pojo.Land;
import com.cow.pojo.LandExample;
import com.cow.service.LandService;

/** 
* @author 光环and鬼泣
* @version 2018年5月25日 上午9:43:59
*/
@Service("langService")
public class LandServiceImpl implements LandService{

	private LandMapper landMapper = null;

	@Override
	public List<Land> getLandList(String userId) throws Exception {
		LandExample example = new LandExample();
		LandExample.Criteria criteria = example.createCriteria();
		criteria.andUserIdEqualTo(userId);
		List<Land> landList = landMapper.selectByExample(example);
		return landList;
	}
}
